<?php
/**
 * 子项目初始化行为
 */
namespace Common\Behavior;

class ActionBeginBehavior extends \Think\Behavior
{
    //行为执行入口
    public function run(&$param)
    {
        $this->loadSysConfig();
    }

    private function loadSysConfig()
    {
        $settings = D('Setting')->select();
        $dict = [];
        foreach ($settings as $setting) {
            C('sdk.' . $setting['k'], array_merge(C('sdk.' . $setting['k']), unserialize($setting['v'])));
        }
    }



}
